package net.khoroshev.dveri.controllers;


import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.servlet.ModelAndView;
 
@Controller
public class MainPageController {
 
    @RequestMapping("/")
    public ModelAndView helloWorld() {
 
        String message = "Hello World, Spring 3.1.1!";
        return new ModelAndView("index", "message", message);
    }
}